
users=[["ID","First Name", "Last Name", "Age", "Mobile"]]
users+=@users.map do |user|
	[	user.id,
		user.firstname,
		user.lastname,
		user.age,
		user.mobile
	]
end
pdf.font "Times-Roman"
pdf.text "USER LIST", :align=>:center, :size=>20, :style=>:bold
pdf.move_down 20
options={:position=>:center,
	:column_widths=>[40,100,100,50,100],
	:row_colors => ["F0F0F0", "FFFFCC"],
	:header=>true}
pdf.table(users,options) do
	row(0).font_style = :bold
end
